package com.woniuxy.aspectj;

import com.woniuxy.service.RbacManagerService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author 罗蔚
 * @Date 2022/3/28 16:23
 * @Description TODO
 */
public class TestAsprctJDemo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationAspectJ.xml");
        RbacManagerService rbacManagerService = (RbacManagerService) applicationContext.getBean("rbacManagerServiceImpl");
        //rbacManagerService.addOne();
        //rbacManagerService.findAll();
        int i = rbacManagerService.addInt(2, 5);
        System.out.println("测试类中打印："+i);
    }
}
